import {createRouter, createWebHistory,createWebHashHistory} from 'vue-router'
import routes from './router'


console.log(createWebHistory(window.__MICRO_APP_BASE_ROUTE__ || process.env.BASE_URL))
console.log(process.env)
const index = createRouter({
	// 👇 __MICRO_APP_BASE_ROUTE__ 为micro-app传入的基础路由
	history: createWebHistory(window.__MICRO_APP_BASE_ROUTE__ || process.env.BASE_URL),
	routes,
})


export default index;